<template>
  <div>
    <el-form>
      <el-form-item label="手机号">
        <el-input></el-input>
      </el-form-item>
      <el-form-item label="验证码">
        <div class="varify">
          <el-input></el-input>
          <el-button class="btn" type="primary">获取验证码</el-button>
        </div>
      </el-form-item>
    </el-form>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  setup() {
    const loginByPhone = () => {
      console.log("手机登陆");
    };
    return { loginByPhone };
  },
});
</script>

<style lang="less" scoped>
.varify {
  display: flex;
  .btn {
    margin-left: 10px;
  }
}
</style>
